package com.hcy.rabbitbasicmodel.enums;

/**
 * @Author huchenying
 * @Description 客户端枚举
 * @Date 2021/12/21 12:56
 */
public enum PushMsg {
    Order(1,"订单通知"),System(2,"系统通知"),Pay(3,"支付通知");

    PushMsg(int code,String name){
        this.code = code;
        this.name = name;
    }

    final int code;
    final String name;

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return this.name;
    }
}
